package com.woniu.shop.service;

import com.woniu.entity.Result;
import com.woniu.shop.entity.dto.ShopApplyDTO;
import com.woniu.shop.pojo.ShopApply;
import com.woniu.entity.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.shop.pojo.ShopApply;

import java.util.concurrent.ExecutionException;

/**
 * <p>
 * 门店申请表 服务类
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-15
 */
public interface IShopApplyService extends IService<ShopApply> {

    /**
     *
     * @param shopApplyDTO 申请数据
     * @param file
     * @return 结果对象
     */
    Result<Object> apply(ShopApplyDTO shopApplyDTO);
    PageResult<ShopApply> checkRegistrationInfo(String shopName, Integer currentPage, Integer pageSize);

    void registrationAndReview(String id) throws ExecutionException, InterruptedException;
}
